Optimal. Leaf size=67 \[ -\frac{1}{12} \log \left (x^2-x+3\right )+\frac{1}{12} \log \left (x^2+x+3\right )-\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{11}}\right )}{6 \sqrt{11}}+\frac{\tan ^{-1}\left (\frac{2 x+1}{\sqrt{11}}\right )}{6 \sqrt{11}} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.049631, antiderivative size = 67, normalized size of antiderivative = 1., number of steps used = 9, number of rules used = 5, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.417, Rules used = {1094, 634, 618, 204, 628} \[ -\frac{1}{12} \log \left (x^2-x+3\right )+\frac{1}{12} \log \left (x^2+x+3\right )-\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{11}}\right )}{6 \sqrt{11}}+\frac{\tan ^{-1}\left (\frac{2 x+1}{\sqrt{11}}\right )}{6 \sqrt{11}} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 1094
Rule 634
Rule 618
Rule 204
Rule 628
Rubi steps
\begin{align*} \int \frac{1}{9+5 x^2+x^4} \, dx &=\frac{1}{6} \int \frac{1-x}{3-x+x^2} \, dx+\frac{1}{6} \int \frac{1+x}{3+x+x^2} \, dx\\ &=\frac{1}{12} \int \frac{1}{3-x+x^2} \, dx-\frac{1}{12} \int \frac{-1+2 x}{3-x+x^2} \, dx+\frac{1}{12} \int \frac{1}{3+x+x^2} \, dx+\frac{1}{12} \int \frac{1+2 x}{3+x+x^2} \, dx\\ &=-\frac{1}{12} \log \left (3-x+x^2\right )+\frac{1}{12} \log \left (3+x+x^2\right )-\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-11-x^2} \, dx,x,-1+2 x\right )-\frac{1}{6} \operatorname{Subst}\left (\int \frac{1}{-11-x^2} \, dx,x,1+2 x\right )\\ &=-\frac{\tan ^{-1}\left (\frac{1-2 x}{\sqrt{11}}\right )}{6 \sqrt{11}}+\frac{\tan ^{-1}\left (\frac{1+2 x}{\sqrt{11}}\right )}{6 \sqrt{11}}-\frac{1}{12} \log \left (3-x+x^2\right )+\frac{1}{12} \log \left (3+x+x^2\right )\\ \end{align*}
Mathematica [C] time = 0.0714477, size = 91, normalized size = 1.36 \[ \frac{i \tan ^{-1}\left (\frac{x}{\sqrt{\frac{1}{2} \left (5+i \sqrt{11}\right )}}\right )}{\sqrt{\frac{11}{2} \left (5+i \sqrt{11}\right )}}-\frac{i \tan ^{-1}\left (\frac{x}{\sqrt{\frac{1}{2} \left (5-i \sqrt{11}\right )}}\right )}{\sqrt{\frac{11}{2} \left (5-i \sqrt{11}\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.046, size = 54, normalized size = 0.8 \begin{align*}{\frac{\ln \left ({x}^{2}+x+3 \right ) }{12}}+{\frac{\sqrt{11}}{66}\arctan \left ({\frac{ \left ( 1+2\,x \right ) \sqrt{11}}{11}} \right ) }-{\frac{\ln \left ({x}^{2}-x+3 \right ) }{12}}+{\frac{\sqrt{11}}{66}\arctan \left ({\frac{ \left ( 2\,x-1 \right ) \sqrt{11}}{11}} \right ) } \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.46939, size = 72, normalized size = 1.07 \begin{align*} \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x + 1\right )}\right ) + \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x - 1\right )}\right ) + \frac{1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac{1}{12} \, \log \left (x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.2528, size = 193, normalized size = 2.88 \begin{align*} \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x + 1\right )}\right ) + \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x - 1\right )}\right ) + \frac{1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac{1}{12} \, \log \left (x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 0.233039, size = 70, normalized size = 1.04 \begin{align*} - \frac{\log{\left (x^{2} - x + 3 \right )}}{12} + \frac{\log{\left (x^{2} + x + 3 \right )}}{12} + \frac{\sqrt{11} \operatorname{atan}{\left (\frac{2 \sqrt{11} x}{11} - \frac{\sqrt{11}}{11} \right )}}{66} + \frac{\sqrt{11} \operatorname{atan}{\left (\frac{2 \sqrt{11} x}{11} + \frac{\sqrt{11}}{11} \right )}}{66} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.13146, size = 72, normalized size = 1.07 \begin{align*} \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x + 1\right )}\right ) + \frac{1}{66} \, \sqrt{11} \arctan \left (\frac{1}{11} \, \sqrt{11}{\left (2 \, x - 1\right )}\right ) + \frac{1}{12} \, \log \left (x^{2} + x + 3\right ) - \frac{1}{12} \, \log \left (x^{2} - x + 3\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]